BIN = webgui
OBJECTS = webgui.o

CFLAGS = `pkg-config --cflags webkit-1.0`
LIBS = `pkg-config --libs webkit-1.0`

all: build

build: $(BIN)

$(BIN): $(OBJECTS)
	gcc -o $(BIN) $(OBJECTS) $(LIBS)

%.o: %.c
	gcc $(CFLAGS) -c $<

clean:
	rm -f $(OBJECTS) $(BIN)

run: build
	./$(BIN) -2 "0 open http://www.google.com" "0 position 50 50" "0 size 300 100" "0 zindex front" "0 visible true" "1 position 0 0" "1 size 800 600" "1 open http://www.fi.muni.cz" "1 visible true"


